package com.kukaha.teststarterdemo.controller;

import com.kukaha.service.SmsSender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description TODO
 * @Author kukaha
 * @Date 2021/9/24 13:18
 * @Version 1.0
 */
@RestController
public class TestController {

    @Autowired
    @Qualifier("aliYunSmsSender")
    private SmsSender smsSender;

    @RequestMapping("/test")
    public String test() {
        smsSender.send("测试发送短息了");
        return "测试发送短息了1111";
    }

}
